﻿@{
    ViewBag.LauncherUrl = "http://112.91.172.196:8008/Launcher.zip";    
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title-@Settings.SiteName</title>
    <meta name="keywords" content="@Settings.MetaKeyWords" />
	<meta name="description" content="@Settings.MetaDescription" />
    @Using(SystemDirectory.Utility, "pepper-grinder/jquery-ui-1.8.16.custom.css")
    @Using(SystemDirectory.Utility, "common.css")
    @Using(SystemDirectory.Content, "Site.css")
    @Using(SystemDirectory.Content, "homepage.css")
    @Using(SystemDirectory.Utility, "scripts/jquery-1.6.2.min.js")
    @Using(SystemDirectory.Utility, "scripts/modernizr-1.7.min.js")
    @Using(SystemDirectory.Utility, "scripts/jquery-ui-1.8.16.custom.min.js")
    @Using(SystemDirectory.Utility, "scripts/global.js")
    @Using(SystemDirectory.Scripts, "core.js")
    @RenderSection("Header", false)
</head>

<body>
    <div id="wrapper">
        <div id="header">
            <div class="search-bar">
                <form action="#" method="get">
                <div>
                    <input type="text" class="search-field input" name="q" id="search-field" maxlength="200" alt="搜索英雄榜、论坛和其他信息…" value="搜索英雄榜、论坛和其他信息…" />
                    <input type="submit" class="search-button" onclick="return false;" value="" />
                </div>
                </form>
            </div>
            <h1 id="logo"><a href="/">@ViewBag.Title</a></h1>
            <div class="header-plate">
                <ul class="menu" id="menu">
                    <li class="menu-home">
                        <a href="@CommonUrls.DefaultUrl" @if (ViewBag.MainNav == "home")
                                    {<text>class="menu-active"</text>}>
                        <span>@Local("HomePage")</span>
                        </a>
                    </li>
                    <li class="menu-game">
                        <a href="@WowUrls.LogsView_WowUrl" @if (ViewBag.MainNav == "logs")
                                             {<text>class="menu-active"</text>}>
                        <span>更新日志</span>
                        </a>
                    </li>
                    <li class="menu-community">
                        <a href="@WowUrls.RaidersView_WowUrl" @if (ViewBag.MainNav == "raiders")
                                                {<text>class="menu-active"</text>}>
                        <span>游戏攻略</span>
                        </a>
                    </li>
                    <li class="menu-media">
                        <a href="@WowUrls.Download_WowUrl" @if (ViewBag.MainNav == "download")
                                                 {<text>class="menu-active"</text>}>
                        <span>下载中心</span>
                        </a>
                    </li>
                    <li class="menu-forums">
                        <a href="javascript:void(0);" onclick="alert('正在建设中，祝各位玩家玩的愉快，很快就会完成论坛...'); return false;" @if (ViewBag.MainNav == "forum")
                                                                                                                    {<text>class="menu-active"</text>}>
                        <span>私服论坛</span>
                        </a>
                    </li>
                    <li class="menu-services">
                        <a href="@WowUrls.Donate_WowUrl" @if (ViewBag.MainNav == "donate")
                                               {<text>class="menu-active"</text>}>
                        <span>赞助服务</span>
                        </a>
                    </li>
                </ul>
                <div class="user-plate">
                    <!-- JiaThis Button BEGIN -->
                    <div id="ckepop" class="card-login" >
	                    <strong class="jiathis_txt">分享到：</strong>
	                    <a class="jiathis_button_qzone">QQ空间</a>
	                    <a class="jiathis_button_tsina">新浪微博</a>
	                    <a class="jiathis_button_renren">人人网</a>
	                    <a class="jiathis_button_kaixin001">开心网</a>
	                    <a href="#" class="jiathis jiathis_txt jiathis_separator jtico jtico_jiathis" target="_blank">更多</a>
                    </div>
                    <script type="text/javascript" src="http://v2.jiathis.com/code/jia.js" charset="utf-8"></script>
                    <!-- JiaThis Button END -->
                    <div class="card-overlay"></div>
                </div>
            </div>
        </div>
        
        <div id="content">
            <div class="content-top">
                <div class="content-bot">
                    <div id="homepage">
                        <div id="left">
		                    <div class="homepage-news-wrapper">
                                @RenderBody()
                            </div>
                        </div>
                        <div id="right">
    	                    <div id="sidebar-marketing" class="sidebar-module">
	                            <div class="bnet-offer">
		                            <div class="bnet-offer-bg">
				                        <a href="@ViewBag.LauncherUrl" class="bnet-offer-image"><img src="@TPath("content/images/download_launcher.jpg", "wow")" width="300" height="250" alt=""/></a>
		                            </div>
	                            </div>
	                        </div>
                            <div id="sidebar-links" class="sidebar-module">
		                        <a target="_blank" href="@WowUrls.Download_WowUrl"><img src="http://www.battlenet.com.cn/wow/static/images/sidebar/sidebar-download.jpg" /></a>
		                    </div>
                            <div class="sidebar-module">
			                    <div class="sidebar-title">
	                                <h3 class="category title-forums"><a href="javascript:void(0);">文档分类</a></h3>
			                    </div>
		                        <div class="sidebar-content">
		                            <ul class="trending-topics">
                                        @foreach (var category in Categories.LoadCategories().Values)
                                        {
                                            if (category.IsVisiable)
                                            {
					                        <li>
						                        <a href="@category.CategoryUrl" class="topic">
							                        @category.CategoryName
						                        </a>
						                        <span class="date">文章统计：@category.Threads</span>
					                        </li>
                                            }
                                        }
		                            </ul>
		                        </div>
	                        </div>
                            <div class="sidebar-module">
			                    <div class="sidebar-title">
	                                <h3 class="category title-forums"><a href="javascript:void(0);">最近更新日志</a></h3>
			                    </div>
		                        <div class="sidebar-content">
		                            <ul class="trending-topics">
                                        @foreach (var thread in Threads.GetThreads())
                                        {
					                    <li>
						                    <a href="@thread.ThreadUrl" class="topic">
							                    @thread.Title 
						                    </a>
						                    <a href="@thread.Category.CategoryUrl" class="forum">
							                    @thread.Category.CategoryName
						                    </a>
						                    -
						                    <span class="date">@thread.LastModify.ToLocalDateTimeString()</span>
					                    </li>
                                        }
		                            </ul>
		                        </div>
	                        </div>
                        </div>
                        <span class="clear"></span>
                    </div>
                </div>
            </div>
        </div>

        <div id="footer">
            <div id="sitemap" class="promotions">
                <div class="column">
                    <h3 class="bnet">
                        <a href="/" tabindex="100">魔兽世界私服首页</a>
                    </h3>
                    <ul>
                        @foreach (var thread in Threads.GetThreads(10))
                        {
                        <li><a href="@thread.ThreadUrl" title="@thread.Title">@thread.Title.Truncate(15)</a></li>
                        }
                    </ul>
                </div>
                <div class="column">
                    <h3 class="games">
                        <a href="@WowUrls.LogsView_WowUrl">LICH魔兽世界私服更新日志</a>
                    </h3>
                    <ul>
                        @foreach (var thread in Threads.GetThreads("updatelog", 10))
                        {
                        <li><a href="@thread.ThreadUrl" title="@thread.Title">@thread.Title.Truncate(15)</a></li>
                        }
                    </ul>
                </div>
                <div class="column">
                    <h3 class="account">
                        <a href="@WowUrls.RaidersView_WowUrl">魔兽私服游戏攻略</a>
                    </h3>
                    <ul>
                        @foreach (var thread in Threads.GetThreads("raiders", 10))
                        {
                        <li><a href="@thread.ThreadUrl" title="@thread.Title">@thread.Title.Truncate(15)</a></li>
                        }
                    </ul>
                </div>
                <div class="column">
                    <h3 class="support">
                        <a href="@SiteUrls.GetCategoryUrl("news")">魔兽世界私服新闻</a>
                    </h3>
                    <ul>
                        @foreach (var thread in Threads.GetThreads("news", 10))
                        {
                        <li><a href="@thread.ThreadUrl" title="@thread.Title">@thread.Title.Truncate(15)</a></li>
                        }
                    </ul>
                </div>
                <div class="column">
                    <h3 class="classic">
                        <a href="@SiteUrls.GetCategoryUrl("gf")">魔兽世界官服新闻</a>
                    </h3>
                    <ul>
                        @foreach (var thread in Threads.GetThreads("gf", 10))
                        {
                        <li><a href="@thread.ThreadUrl" title="@thread.Title">@thread.Title.Truncate(15)</a></li>
                        }
                    </ul>
                </div>
                <span class="clear"></span>
            </div>
            <div id="copyright">
                <div class="footer-logo">
                    <a href="/" tabindex="100"><img src="http://www.battlenet.com.cn/wow/static/local-common/images/logos/blizz-wow.png" alt="" /></a>
                    <a href="/" tabindex="100"><img class="logo-netease" src="http://www.battlenet.com.cn/wow/static/local-common/images/logos/flogo-netease.gif" alt="" /></a>
                </div>
                <div class="legal">
                    @AppConfig.Copyright
                </div>
                <p style="clear:both;"></p>
                <div class="notices">
                积极健康的游戏心态是健康游戏的开端，本游戏故事情节设置紧凑，请您合理控制游戏时间，避免沉溺游戏影响生活，注意自我保护，防范网络陷阱。<br />
                健康游戏忠告：抵制不良游戏，拒绝盗版游戏。注意自我保护，谨防受骗上当。适度游戏益脑，沉迷游戏伤身。合理安排时间，享受健康生活。<br />
                本站使用Google Chorme测试开发，推荐使用Chorme浏览器最佳浏览。<br />
                @AppConfig.Analyzer@Settings.IcpCode 载入消耗：@Current.GetLoadedCost("f3") 毫秒。
                </div>
            </div>
        </div>
        
        <div id="service">
            <ul class="service-bar">
                <li class="service-cell service-home"><a href="/" title="网站首页"> </a></li>
                @if (IsAuthenticated)
                { 
                    <li class="service-cell service-welcome"><a href="@WowUrls.UCDefaultUrl">@Self.NickName</a> 或 <a href="@WowUrls.Logout">退出</a></li>
                    if (Self.IsAdministrator)
                    {
                    <li class="service-cell service-support"><a class="service-link" href="@WowUrls.CPDefaultUrl">控制面板</a></li>
                    }
                }
                else
                {
                <li class="service-cell service-welcome"><a href="javascript:void(0);" onclick="return openModal('@WowUrls.Logon', 300);">登录</a> 或 <a href="javascript:void(0);" onclick="return openModal('@WowUrls.Register', 400);">新注册一个网站账号</a></li>
                }
                <li class="service-cell service-support"><a href="@ViewBag.LauncherUrl" class="service-link">登录器下载</a></li>
                <li class="service-cell service-support"><a href="@WowUrls.Donate_WowUrl" class="service-link">魔币荣誉赞助</a></li>
                <li class="service-cell service-explore">
                    <a href="#explore" tabindex="50" accesskey="5" class="dropdown" id="explore-link">本服QQ群</a>
                    <div class="explore-menu" id="explore-menu" style="display:none;">
                        <div class="explore-primary">
                            <ul class="explore-nav">
                            <li>
                                <a href="http://qun.qq.com/#jointhegroup/gid/68911251">
                                    <strong class="explore-caption">LICH娱乐讨论群X1</strong>
                                    点击加入：68911251
                                </a>
                            </li>
                            <li>
                                <a href="http://qun.qq.com/#jointhegroup/gid/68911225">
                                    <strong class="explore-caption">LICH娱乐讨论群X3</strong>
                                    点击加入：68911225
                                </a>
                            </li>
                            <li>
                                <a href="http://qun.qq.com/#jointhegroup/gid/68911094">
                                    <strong class="explore-caption">LICH娱乐讨论群X5</strong>
                                    点击加入：68911094
                                </a>
                            </li>
                            </ul>
                            <div class="explore-links">
                                <h2 class="explore-caption">本站唯一客服QQ</h2>
                                <ul>
                                    <li><a href="http://wpa.qq.com/msgrd?V=1&Uin=985733867&Site=QQ客服&Menu=yes">QQ：985733867</a></li>
                                </ul>
                                <h2 class="explore-caption">技术QQ</h2>
                                <ul>
                                    <li><a href="http://wpa.qq.com/msgrd?V=1&Uin=596130025&Site=技术QQ&Menu=yes">QQ：596130025</a></li>
                                </ul>
                            </div>
                            <span class="clear"><!-- --></span>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </div>
    <iframe frameborder="0" scrolling="no" id="dialog-container"/>
</body>
</html>
